package org.jctc.els.modules.biz.controller;


import lombok.AllArgsConstructor;
import org.jctc.els.modules.biz.entity.BladeAttach;
import org.jctc.els.modules.biz.service.IBladeAttachService;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/blade_attach")
@AllArgsConstructor
public class BladeAttachController {

	private IBladeAttachService bladeAttachService;

	@GetMapping
	public R<List<BladeAttach>> selectAll(){
		List<BladeAttach> bladeAttaches = bladeAttachService.selectAll();
		return R.data(bladeAttaches);
	}


}
